Date : 07/09/16

README File for "Robust Null Findings on Offspring Sex and Political Orientation" by Byungkyu Lee and Dalton Conley, Social Forces, forthcoming, 2016.

This file contains Stata Do files and R codes to reproduce all figures and tables appeared in the paper "Robust Null Findings on Offspring Sex and Political Orientation" as well as online supplementary materials published in Social Forces in 2016. The original data set are not included here -- which are publicly available --  but can be downloaded at:

1) GSS - Smith, Tom W., Peter Marsden, Michael Hout, and Jibum Kim. General Social Surveys, 1972–2012 : http://www3.norc.org/GSS+Website/ (last accessed on 14 March 2014).
-- GSS7212_R2.dta

2) ESS - European Social Survey (2002-2012) Round 1-6 Data. Norwegian Social Science Data Services, Norway – Data Archive and distributor of ESS data. Available from: www.europeansocialsurvey.org (last accessed on 14 March 2014).
-- ess1e06_3.xpt, ess2e03_3.xpt, ess3e03_4.xpt, ess4e04_1.xpt, ess5e03.xpt, ess6e01_2.dta

We included one additional data file (daughter_analytic2.dta) that add new variables to the original analytic data file (daughter_analytic.dta) we provided before. You can generate this data file by running Daughter_reanalysis.do along with Daughter_Data Setup.do file.

If you set up the working directory containing this file, then you can produce following figures and tables by running the corresponding Stata do-files and R codes. 

Main -----------------------------------------
Table 1 -- Daughter_reanalysis.do
Table 2 -- Daughter_reanalysis.do
Table 3 -- Daughter_reanalysis.do
Table 4 -- Daughter_reanalysis.do

Figure 1 -- Daughter_reanalysis_figures.R
Figure 2 -- Daughter_reanalysis_figures.R 
** we also include simulated data sets (sim_measurement.RData) that we produced by running Daughter_reanalysis_figures.R for exact replication of Figure 2.

Online Supplementary Materials ---------------
Table S1 -- Daughter_reanalysis_figures.R
Table S2 -- Daughter_reanalysis.do

Program Version Information : 
-- Stata 14 SE version for all analysis 
-- R 3.2.3 

If you have any question on these files or fail to reproduce any of figures or tables, then please correspond to Byungkyu Lee (byungkyu.lee@columbia.edu). 

